package com.zbkj.crmeb.store.model;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 专区表
 * </p>
 *
 * @author Mr.Zhang
 * @since 2020-05-28
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("eb_store_zone")
@ApiModel(value="StoreZone", description="专区表")
public class StoreZone implements Serializable {
    private static final long serialVersionUID = 5071900249288082654L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 名称
     */
    @ApiModelProperty(value = "名称")
    private String name;

    @ApiModelProperty(value = "副标题")
    private String subName;

    /**
     * 图片地址
     */
    @ApiModelProperty(value = "图片地址")
    private String image;

    /**
     * 默认0不显示 1显示
     */
    @ApiModelProperty(value = "默认0不显示 1显示")
    private Integer status;

    /**
     * 是否删除 0不 1是
     */
    @ApiModelProperty(value = "是否删除 0不 1是")
    private Integer isDel;

    /**
     * 排序
     */
    @ApiModelProperty(value = "排序")
    private Integer sort;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private Date createTime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private Date updateTime;

    @ApiModelProperty(value = "商户Id（0表示平台）")
    private Integer merId;

    /**
     * 是否导航栏展示 0不 1是
     */
    @ApiModelProperty(value = "是否导航栏展示 0不 1是")
    private Integer isAppBar;

    @ApiModelProperty(value = "是否菜单显示 0不 1是")
    private Integer menuDisplay;

    @ApiModelProperty(value = "开始时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    @ApiModelProperty(value = "结束时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    @ApiModelProperty(value = "是否推送（0不推送  1已推送）")
    private Integer isPush;

    @ApiModelProperty(value = "推送商户ids 格式 [1,2,3,4]")
    private String pushMerIds;

    @ApiModelProperty(value = "推送的专区id")
    private Integer pushZoneId;

    @ApiModelProperty(value = "专区类型  0:平台推荐   1:商户自建")
    @TableField(exist = false)
    private Integer zoneType;
}
